//
//  DataBaseCtrol.h
//  tcpoctest
//
//  Created by gump on 10/30/12.
//  Copyright (c) 2012 gump. All rights reserved.
//

#import <Foundation/Foundation.h>

@class FirCirCommentInfo;
@class FMDatabase;

@class userdb;
@class headimagedb;
@class personInfodb;
@class caredb;
@class becaredb;
@class messagedb;
@class chatuserdb;
@class bigimagedb;

@class firendCircledb;
@class FirendCirLocalPathdb;
@class FirCirPictureIDdb;
@class fircirnewsdb;
@class FirCirNewIDCommentIDdb;
@class FirCirCommentdb;
@class FirCirMailNewsdb;
@class FirCirBgImagedb;

@class giftListDataBase;
@class giftInfoDatabase;
@class giftInfoImageDataBase;
@class giftInfoMusicDataBase;
@class giftMessageDataBase;

@class telepathydb;

@interface DataBaseCtrol : NSObject
{
}

@property(nonatomic,strong) userdb                      *userdatabase;
@property(nonatomic,strong) headimagedb                 *headimagedatabase;
@property(nonatomic,strong) personInfodb                *personInfoDataBase;
@property(nonatomic,strong) messagedb                   *messagedatabase;
@property(nonatomic,strong) chatuserdb                  *chatuserdatabase;
@property(nonatomic,strong) bigimagedb                  *bigimagedatabase;
@property(nonatomic,strong) firendCircledb              *fircirdatabase;
@property(nonatomic,strong) FirendCirLocalPathdb        *fircirlocaldatabase;
@property(nonatomic,strong) FirCirPictureIDdb           *fircirPIDdatabase;
@property(nonatomic,strong) fircirnewsdb                *fircirnewdatabase;
@property(nonatomic,strong) FirCirNewIDCommentIDdb      *fircirnewcommentdatabase;
@property(nonatomic,strong) FirCirCommentdb             *fircircommentdatabase;
@property(nonatomic,strong) FirCirMailNewsdb            *fircirmailnewsdatabase;
@property(nonatomic,strong) FirCirBgImagedb             *fircirbgimagedatabase;

@property(nonatomic,strong) giftListDataBase            *giftListImageDB;
@property(nonatomic,strong) giftInfoDatabase            *giftInfoDB;
@property(nonatomic,strong) giftInfoImageDataBase       *giftinfoImageDB;
@property(nonatomic,strong) giftInfoMusicDataBase       *giftinfoMusicDB;
@property(nonatomic,strong) giftMessageDataBase         *giftMessageDB;

@property(nonatomic,strong) telepathydb                 *TelepDB;

+(DataBaseCtrol*)shareControl;
-(void)openDB;
-(void)initData;
-(void)initMutex;

-(void)AddComment:(FirCirCommentInfo *)fccinfo;

@end
